package com.haodai.agency.utils;
import android.content.Context;
import android.graphics.drawable.Drawable;
/**
 * Created by fanday on 16/9/9.
 */
public class DrawableUtils {
    public static Drawable creatDrawable(int drawableId, Context context) {
        Drawable drawable = context.getResources().getDrawable(drawableId);
        drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight()); //设置边界
        return drawable;
    }
}
